﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Template.Master" Inherits="System.Web.Mvc.ViewPage<JLL.China.Web.Areas.Portal.Models.BannerModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <%--<!--  start page-heading -->
    <div id="page-heading">
        <h1>
            Manage Article: Create new
        </h1>
    </div>--%>
    <div class="menu-nav">
        <% Html.RenderPartial("Side");%>
    </div>
    <!-- end page-heading -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="<%= Url.Content("~/Content/images/shared/side_shadowleft.jpg") %>" width="20"
                    height="300" alt="" />
            </th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;
            </td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="<%= Url.Content("~/Content/images/shared/side_shadowright.jpg") %>" width="20"
                    height="300" alt="" />
            </th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td >
                <!--  start content-table-inner ...................................................................... START -->
                <div id="content-table-inner" >
                    <% Html.RenderPartial("Measage");%>
                    
                    <% Html.RenderPartial("StaticForm", Model); %>
                   

                </div>
                
                <!--  end table-content  -->
              </td>
              <td id="tbl-border-right">
            </td>
         </tr>
         <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;
            </td>
            <th class="sized bottomright">
            </th>
        </tr>
         
     </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CSS" runat="server">
    <link href="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.css") %>" rel="stylesheet"
        type="text/css" />
    <link href="<%=Url.Content("~/Scripts/jquery.validation/validationEngine.jquery.css")%>"
        rel="stylesheet" type="text/css" />
        <link href="<%=Url.Content("~/Content/css/mod-listing.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Url.Content("~/Scripts/chosen/chosen.css")%>" rel="stylesheet" type="text/css" />
     <link href="<%=Url.Content("~/Scripts/uploadify/uploadify.css") %>" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="JS" runat="server">

    <script src="<%=Url.Content("~/Scripts/jquery.validation/jquery.validationEngine-en.js")%>"
        type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.validation/jquery.validationEngine.js")%>"
        type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/chosen/chosen.jquery.min.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/qtip2/jquery.qtip.min.js")%>" type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/jquery.validation/jquery.validate.js")%>"
        type="text/javascript"></script>

    <script src="<%=Url.Content("~/Scripts/ckeditor/ckeditor.js")%>" type="text/javascript"></script>

    <script type="text/javascript" src="<%=Url.Content("~/Scripts/ckeditor/adapters/jquery.js")%>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Scripts/uploadify/swfobject.js") %>"></script>
<script type="text/javascript" src="<%= Url.Content("~/Scripts/uploadify/jquery.uploadify.min.js")  %>"></script>
    <script type="text/javascript">
        function checkFormMainBanner() {
            $(document).ready(function() {
            });

        }
        function checkForm() {
            $(document).ready(function() {
            

                if ($('#contentID').val().length > 3) {
                    $('#content_validate').val('ok');
                }
                else {
                    $('#content_validate').val('');
                }

                if ($('#content_local').val().length > 3) {
                    $('#content_local_validate').val('ok');
                }
                else {
                    $('#content_local_validate').val('');
                }

            });

        }
        $(document).ready(function() {

            $('.ckeditors').ckeditor();

            jQuery("#formID").validationEngine({
                prettySelect: true,
                useSuffix: "_chzn",
                promptPosition : "topLeft",
                scroll:false
            });

            $(".chzn-nosearch").chosen({ disable_search_threshold: 3 });
            //End Data
            $(".chosen-select").chosen({
                allow_single_deselect: true
            });
            //fancy box
            $(".fancybox-button").fancybox({
                prevEffect: 'none',
                nextEffect: 'none',
                closeBtn: false,
                helpers: {
                    title: null,
                    buttons: {}
                }
            });

            $.ajaxSetup({ cache: false });
            $("#file_upload").uploadify({
                auto: false,
                swf: '<%= Url.Content("~/")%>Scripts/uploadify/uploadify.swf',
                uploader: '<%= Url.Action("UploadFiles","SideContent") %>',
                cancelImg: '<%= Url.Content("~/")%>Scripts/uploadify/uploadify-cancel.png',
                scriptAccess: 'always',
                buttonText: 'Browse',
                uploadLimit: 3,
                fileSizeLimit: '2MB',
                fileTypeDesc: 'Image Files',
                fileTypeExts: '*.gif; *.jpg; *.png',
                multi: true,
                'onError': function(a, b, c, d) {
                    if (d.status == 404)
                        alert('Could not find upload script.');
                    else if (d.type === "HTTP")
                        alert('error ' + d.type + ": " + d.status);
                    else if (d.type === "File Size")
                        alert(c.name + ' ' + d.type + ' Limit: ' + Math.round(d.sizeLimit / 1024) + 'KB');
                    else
                        alert('error ' + d.type + ": " + d.text);
                },
                'onUploadComplete': function(file, data) {
                    $("#content-outer").hideLoading();
                },
                'onQueueComplete': function(queueData) {
                    $("#content-outer").hideLoading();
                    window.location.href = window.location.href;
                },
                'onSelect': function(file) {
                    $('.upload-img-btn').removeClass('hide');
                },
                'onUploadStart': function(file) {
                    $("#content-outer").showLoading();
                }
            });
        });
    </script>

</asp:Content>

